package com.smile.frame.common.exception;

import lombok.Getter;

/**
 * 系统范围 1-999
 *
 * @author LGC
 * @date 2021/10/20 20:10
 */
@Getter
public enum BaseErrorCodeEnum implements ErrorCodeEnumInterface {
    /**
     * 系统基础code 1-999
     */
    BASE_SUCCESS(200, "成功"),
    BASE_FAIL(101, "失败，请联系管理员"),
    BASE_NO_PERMISSION_ERROR(102, "权限不足，请联系管理员"),
    BASE_LOGIN_ERROR(103, "登录已过期,请重新登录!"),
    BASE_CONTROLLER_PARAM_ERROR(103, "参数异常:"),
    BASE_SERVICE_PARAM_ERROR(105, "业务参数异常:"),
    BASE_NON_EXISTENCE_ERROR(106, "数据不存在，请联系管理员"),
    BASE_EXCEL_EXPORT_ERROR(107, "excel导出异常"),
    BASE_UPLOAD_FILE_ERROR(108, "上传文件失败"),
    BASE_DEL_FILE_ERROR(109, "删除文件失败"),
    BASE_SECRET_KEY_ERROR(110, "密钥错误"),
    BASE_REPEAT_SUBMIT_ERROR(111, "重复请求，请稍后再试"),
    BASE_URL_404_ERROR(404, "请求地址不存在"),
    ;


    private final Integer code;
    private final String msg;

    BaseErrorCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
